package com.blb.zycommunity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.zycommunity.entity.ZyLiked;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

public interface ZyLikedMapper extends BaseMapper<ZyLiked> {

    @Insert("insert into zy_liked(interaction_id,owner_id) values(#{interactionId},#{ownerId})")
    void insertLiked(String interactionId , String ownerId);

    @Delete("delete from zy_liked where interaction_id=#{interactionId} and owner_id=#{ownerId}")
    void deleteLiked(String interactionId , String ownerId);

}
